home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text.rtf;
-
- import javax.swing.text.AttributeSet;
- import javax.swing.text.BadLocationException;
-
- class RTFReader$DocumentDestination extends RTFReader.TextHandlingDestination implements RTFReader.Destination {
- // $FF: synthetic field
- private final RTFReader this$0;
-
- RTFReader$DocumentDestination(RTFReader var1) {
- super(var1);
- this.this$0 = var1;
- }
-
- public void deliverText(String var1, AttributeSet var2) {
- try {
- this.this$0.target.insertString(this.this$0.target.getLength(), var1, ((RTFReader.AttributeTrackingDestination)this).currentTextAttributes());
- } catch (BadLocationException var4) {
- throw new InternalError(((Throwable)var4).getMessage());
- }
- }
-
- public void endSection() {
- }
-
- public void finishParagraph(AttributeSet var1, AttributeSet var2) {
- int var3 = this.this$0.target.getLength();
-
- try {
- this.this$0.target.insertString(var3, "\n", var2);
- this.this$0.target.setParagraphAttributes(var3, 1, var1, true);
- } catch (BadLocationException var5) {
- throw new InternalError(((Throwable)var5).getMessage());
- }
- }
- }
-